package com.googlecode.ascrblr.api.scrobbler;

import java.util.ArrayList;
import java.util.Iterator;


/**
 * The Class TrackInfoList.
 */
public class TrackInfoList {

	/** The track info list. */
	private ArrayList<TrackInfo> trackInfoList = new ArrayList<TrackInfo>();

	/**
	 * Instantiates a new track info list.
	 */
	public TrackInfoList() {
		super();
	}

	/**
	 * Add.
	 * 
	 * @param o the o
	 * 
	 * @return true, if successful
	 */
	public boolean add(TrackInfo o) {
		return trackInfoList.add(o);
	}

	/**
	 * Clear.
	 */
	public void clear() {
		trackInfoList.clear();
	}

	/**
	 * Checks if is empty.
	 * 
	 * @return true, if is empty
	 */
	public boolean isEmpty() {
		return trackInfoList.isEmpty();
	}

	/**
	 * Iterator.
	 * 
	 * @return the iterator< track info>
	 */
	public Iterator<TrackInfo> iterator() {
		return trackInfoList.iterator();
	}

	/**
	 * Size.
	 * 
	 * @return the int
	 */
	public int size() {
		return trackInfoList.size();
	}

	/**
	 * Gets the track info list.
	 * 
	 * @return the track info list
	 */
	public ArrayList<TrackInfo> getTrackInfoList() {
		return trackInfoList;
	}

	/**
	 * Sets the track info list.
	 * 
	 * @param trackInfoList the new track info list
	 */
	public void setTrackInfoList(ArrayList<TrackInfo> trackInfoList) {
		this.trackInfoList = trackInfoList;
	}
	
	
	
}
